package com.bigflexlib.x.mx.collections.IList
{
	import com.bigflexlib.utils.BasicTestBase;
	
	import mx.collections.ArrayCollection;
	import mx.collections.IList;

	public class IListUtilTest extends BasicTestBase
	{
		
		
		
		public function test_equalizeListToArrayKeepingOrder( ):void
		{

		
			var tests:Array = [
				[ ] ,
				[ 1, 2 ] ,
				[ 2, 1 ] ,			
				[ 1, 1, 1 ] ,
				[ 1 ]	
			];
		
		
			var list:IList = new ArrayCollection( );
			
			
			
			for each ( var test:Array in tests )
			{
			
				IListUtil.equalizeListToArrayKeepingOrder( list, test );
				
				assertContainersEqual( list, test );				
			
			}

			
		}
		
		
		
		
	}
}